package com.lvchuang.service;

import com.lvchuang.mapper.NewsCategoryMapper;
import com.lvchuang.model.NewsCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: zgr
 * @Date: 2019/9/23 15:55
 * @Description:
 */
@Service
public class NewsCategoryService {
    @Autowired
    private NewsCategoryMapper newsCaMa;

    public NewsCategory SelectByCategoryId(Integer category_id) {
        return newsCaMa.SelectByNewsCategoryId(category_id);
    }

    public NewsCategory selectByName(String category_name) {
        return newsCaMa.selectByName(category_name);
    }
}
